package org.adream.account.dao;

import java.util.List;

import org.adream.account.entity.Dream2020CertificationEntity;
import org.apache.ibatis.annotations.Param;

@BaseMybatisDao
public interface Dream2020CertificationDao {
	
	int addDream2020Certification(Dream2020CertificationEntity dream2020Certification);
	
	int checkDream2020Certification(Dream2020CertificationEntity dream2020Certification);
	
	int deleteDream2020CertificationBySidAndType(Dream2020CertificationEntity dream2020Certification);

	int updateDream2020Certificayion(Dream2020CertificationEntity dream2020Certification);
	
	Dream2020CertificationEntity queryDream2020Certification(@Param("userId") int userId, @Param("certificationName") String certificationName, @Param("roleId") int roleId);
	
	List<Dream2020CertificationEntity> queryDream2020CertificationsBySidAndType(@Param("sid") int sid, @Param("type") int type);
}